package com.itmuch.box.domain.content.entity;
// Generated 2016-1-10 16:05:41 by Hibernate Tools 4.3.1.Final

import static javax.persistence.GenerationType.IDENTITY;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import com.itmuch.box.core.base.BaseEntity;

/**
 * ContentVideo generated by hbm2java
 */
@Entity
@Table(name = "f_content_video", catalog = "yayi_spring_boot")
@DynamicInsert
@DynamicUpdate
public class ContentVideo extends BaseEntity {

    private Integer id;
    private String videoUrl;
    private String doctor;
    private String patient;
    private Date operationTime;

    public ContentVideo() {
    }

    public ContentVideo(String videoUrl, String doctor, String patient, Date operationTime) {
        this.videoUrl = videoUrl;
        this.doctor = doctor;
        this.patient = patient;
        this.operationTime = operationTime;
    }

    @Id
    @GeneratedValue(strategy = IDENTITY)

    @Column(name = "id", unique = true, nullable = false)
    public Integer getId() {
        return this.id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Column(name = "video_url", nullable = false)
    public String getVideoUrl() {
        return this.videoUrl;
    }

    public void setVideoUrl(String videoUrl) {
        this.videoUrl = videoUrl;
    }

    @Column(name = "doctor", nullable = false, length = 20)
    public String getDoctor() {
        return this.doctor;
    }

    public void setDoctor(String doctor) {
        this.doctor = doctor;
    }

    @Column(name = "patient", nullable = false, length = 20)
    public String getPatient() {
        return this.patient;
    }

    public void setPatient(String patient) {
        this.patient = patient;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "operation_time", nullable = false, length = 0)
    public Date getOperationTime() {
        return this.operationTime;
    }

    public void setOperationTime(Date operationTime) {
        this.operationTime = operationTime;
    }

}
